import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.scss'
import 'normalize.css'

// import { registerMicroApps, start } from 'qiankun'
import { registerMicroApps, start } from './micro-fe'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

registerMicroApps([

  {
    name: 'app-vue1',
    entry: '//localhost:1001',
    container: '#container',
    activeRule: '/app-vue1'
  },
  {
    name: 'app-vue2',
    entry: '//localhost:1002',
    container: '#container',
    activeRule: '/app-vue2'
  }
])
start({ experimentalStyleIsolation: true })
